package tgc.edu.exam.service;

import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.exam.custom.CommonService;
import tgc.edu.exam.entity.Student;
import tgc.edu.exam.entity.StudentAssess;
import tgc.edu.exam.entity.TbClass;
import tgc.edu.exam.repository.StudentAssessRepository;

@Service
public class StudentAssessService extends CommonService<StudentAssess, UUID> {
	@Autowired
	private StudentAssessRepository stuAssessDAO;


	public List<StudentAssess> findByStudentTbClass(TbClass tbClass) {
		return stuAssessDAO.findByStudentTbClass(tbClass);
	}

	public StudentAssess findByStudent(Student student) {
		return stuAssessDAO.findByStudent(student);
	}

}
